//
//  ImageDownCell.m
//  JackToolsBox
//
//  Created by Jack Xue on 2019/12/12.
//  Copyright © 2019 Jack Xue. All rights reserved.
//

#import "ImageDownCell.h"
#import "JKWebImage.h"
@interface ImageDownCell(){
    UIImageView *_bigImageView;
}

@end

@implementation ImageDownCell
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        // Initialization code
        _bigImageView = [[UIImageView alloc]initWithFrame:CGRectZero];
        _bigImageView.backgroundColor = [UIColor lightGrayColor];
        _bigImageView.contentMode = UIViewContentModeScaleAspectFill;
        [self.contentView addSubview:_bigImageView];
    }
    return self;
}

-(void)layoutSubviews{
    [super layoutSubviews];
    _bigImageView.frame = CGRectMake(10, 10, 100, 180);
}

-(void)sendValueToCell:(NSString*)urlString{
    [_bigImageView setWebImageWithUrl:urlString placeholder:[UIImage imageNamed:@"placeholder"]];
}

#pragma mark - 自动生成
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    // Configure the view for the selected state
}



@end
